package com.randb.easyhttp.exception;

/**
 * User: RandBII
 * Date: 2020/5/8
 * Description:
 */
public class ServerException extends RuntimeException {

    private String errorMessage;
    private int errorCode;

    public ServerException(int errorCode, String errorMessage) {
        super(errorMessage);
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }


    public String getErrorMessage() {
        return errorMessage;
    }

    public int getErrorCode() {
        return errorCode;
    }
}
